package com.create.myworld.util;

/**
 * @author zcw
 * 时间工具类
 */
public class TimeUtil {
    /**
     * 秒级时间戳
     * @return
     */
    public static Long getSeconds() {
        String timestamp = String.valueOf(System.currentTimeMillis());
        int length = timestamp.length();
        if (length > 3) {
            return Long.valueOf(timestamp.substring(0, length - 3));
        } else {
            return 0L;
        }
    }
}
